package com.sumainfor.pc.gmio.fallback.ZfallBack;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.gmio.feign.Zfeign.ZwxTenantFeign;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 调用租客端服务
 * <p>
 *
 * @author: zhou
 * @create: 2019-06-05 19:02
 **/
@Component
public class ZwxTenantFeignFallback implements ZwxTenantFeign {

    @Override
    public JsonResult getTenantTenPhone(Map<String,Object> params){
        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public JsonResult updateHotc(Map<String, Object> params) {
        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public List<Map<String, Object>> getNameOrPhoneList(String search) {
        return new ArrayList<>();
    }

    @Override
    public JsonResult getTenOpenId(Map<String, Object> params) {
        return JsonResult.error("租客端服务器繁忙");
    }

    @Override
    public Map<String, Object> getTenantXinxi(Map<String, Object> params) {
        return new HashMap<>();
    }

}
